﻿var debugConfig = require("../debug");

exports.index = function () {
    var msg = {
        debug: debugConfig
    };
    this.render('home/index.html', msg);
};

exports.config = function (debug) {
    var _debug = JSON.parse(debug)

    debugConfig.tcpClient.sendData = _debug.tcpClient.sendData;
    debugConfig.tcpClient.recvData = _debug.tcpClient.recvData;
    debugConfig.webSocket.sendData = _debug.webSocket.sendData;
    debugConfig.webSocket.recvData = _debug.webSocket.recvData;
    this.renderJson(1);
};